<template>
	<view>
		个人中心
		<u-button text="退出登录" @click="logout"></u-button>
	</view>
</template>

<script>
import {logout } from '@/api/login.js';

	export default {
		data() {
			return {
				
			}
		},
		methods: {
			logout(){
				logout({}).then(res => {
						uni.hideLoading();
						uni.clearStorageSync()							
						uni.navigateTo({
							url: '/pages/login/login',
						})
					})
					.catch(err => {
						
					});
				
			}
			
		}
	}
</script>

<style>

</style>
